package com.wry.wry_test.feign.fallback;

import com.wry.wry_test.feign.api.ApiServiceFeign;
import feign.Response;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author: wangrongyi
 * @Date: 2024/7/12 17:08
 * @Description:
 */
@Slf4j
@Component
public class ApiServiceHystrix implements ApiServiceFeign {

    @Override
    public Response getAllUrl(String path, String method) {
        // 设置调用失败时的降级处理
        log.error("远程调用失败！");
        return null;
    }

    @Override
    public void testProxy() {
        log.error("远程调用失败！");
    }
}
